package com.evil.application.pojo.dto.reporting.data;

import com.alibaba.fastjson.annotation.JSONField;
import com.evil.application.pojo.dto.reporting.ReportingTargetDTO;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 报表数据 单元格
 *
 * @author liyang
 * @date 2022-08-08 00:00
 */
@Data
@Accessors(chain = true)
public class ReportingTableDataTargetDTO extends ReportingTableDataDTO {

    /**
     * 是否隐藏单元格
     */
    @JSONField(serialize = false)
    private ReportingTargetDTO target;

    public ReportingTableDataTargetDTO(ReportingTargetDTO target) {
        super(target.getTitle());
        this.target = target;
    }

    @Override
    public boolean equals(Object o) {
        return this == o;
    }

    @Override
    public int hashCode() {
        return super.hashCode();
    }
}
